import Layout from '@/layout'

const userCenterRouter = {
  path: '/user',
  component: Layout,
  name: 'UserCenter',
  redirect: 'noRedirect',
  meta: {
    title: '用户中心',
    icon: 'user'
  },
  children: [
    {
      path: '/user/profile',
      component: () => import('@/views/user/profile'),
      name: 'Profile',
      meta: {
        title: '个人中心',
        icon: 'user'
      }
    },
    {
      path: '/user/messageCenter',
      component: () => import('@/views/user/messageCenter.vue'),
      name: 'MessageCenter',
      meta: {
        title: '消息中心',
        icon: 'message'
      }
    }
  ]
}

export default userCenterRouter
